import request from '@/utils/request'

// 查询财务审核列表
export function listAudit(query) {
  return request({
    url: '/audit/audit/list',
    method: 'get',
    params: query
  })
}

// 查询财务审核详细
export function getAudit(id) {
  return request({
    url: '/audit/audit/' + id,
    method: 'get'
  })
}

// 新增财务审核
export function addAudit(data) {
  return request({
    url: '/audit/audit',
    method: 'post',
    data: data
  })
}

// 修改财务审核
export function updateAudit(data) {
  return request({
    url: '/audit/audit',
    method: 'put',
    data: data
  })
}

// 删除财务审核
export function delAudit(id) {
  return request({
    url: '/audit/audit/' + id,
    method: 'delete'
  })
}



// 财务拒绝
export function refuse(id) {
  return request({
    url: '/audit/audit/refuse/' + id,
    method: 'get'
  })
}


//审核并转发
export function check(id) {
  return request({
    url: '/audit/audit/check/' + id,
    method: 'get'
  })
}



//审核并转发
export function getInfo(id) {
  return request({
    url: '/audit/audit/' + id,
    method: 'get'
  })
}

